Niantic interview question

Convert a value from one primitive type to another.