Fixed implicit conversion loses integer precision warnings