I thought that at first. Apparently all data fields when accessed via $dataobject->property will return a string. Boolean values return "1" or "0". The only exception is $dataobject->ID, which returns an integer.