Fix type-punning error.