casting types to ensure proper selection of overloaded method