Cast function (18/23)

Cast function