fixed type casts