added cast() function to utilsObject class to better support casting to string
added castMap() function to utilsObject
optimized castList() function to return sooner and fail better