Added option to recursively cast array values to a type (for bool, int, float, string types) rather than return null when casting an array to these types. (simulates filter_var_array() behaviour).

Removed constructor in favour of static method
Updated documentation