Treatment of Data Values
Unlike Java, the .NET runtime treats all types as objects, including the basic value types, such as integer or double. Therefore, the .NET PDO data access methods take and return objects, and there are no type-specific get or set methods as in Java. The caller must cast the returned object to the relevant subtype before using it. For more information on casting, see the Programming Guide.