Multipart question on casting