Adding really simple type casting to avoid errors with empty fields on databases that require good data