Cast function (5/23)

Cast function