Initial implementation of Model class with object casting