Added function to only cast defined values in an object, necessary in queries
0.1.13