Add casting method to cast proper values
Finally, there were no BS