A PHP DataType transformer