convnwb.utils.convert.convert_type

convnwb.utils.convert.convert_type(variable, dtype)[source]

Convert type of a given variable.

Parameters:
variable

Variable to type cast.

dtypetype

Type to cast to.

Returns:
out

Typecast value, with type dtype.