Amazon Interview Question

Code implicit casting without the built in function