fixed sizeof cast