extract logical should use bitwise_cast