added more type conversions