--- layout: stdlib-reference --- # bit\_cast ## Description Bit cast between types. T and U must have the same size. They can be any scalar, vector, matrix, struct or array types. ## Signature
T bit_cast<T, U>(U value);## Generic Parameters #### T #### U ## Parameters #### value : [U](bit_cast.html#typeparam-U)