Support user-defined types in cast expressions.

Change-Id: Id2bfaf822f8547d219728744f01ecaaac523ed22