Started build a Cast function