Fixed constructor
Added static conversions real -> int