Casting instance variables on MapUnit to aid in JSON serialization/deserialization.