MATLAB: When I use MATLAB coder for a typecast function, I get an unsupported class error

MATLABmatlab coder

When I use MATLAB coder for the following function, I get an unsupported class error.
function y = foo(x)
y = typecast(x, 'UINT32')
end

Best Answer

The second argument in "typecast" should not be capitalized.
For example:
function y = foo(x)
y = typecast(x, 'uint32')
end