Added helper methods to enforce types