casts and comparison operators