Cast function (22/23)

Cast function