Ensure Accepts and Returns annotations work with PHP, XML or JSON
Cast values before fetching record in PdoModel