translate() method name replaced with typecast()