parsing casts